home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / PatFrame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.1 KB  |  72 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PatFrame.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PATFRAME_H
  13. #define PATFRAME_H
  14.  
  15. #ifndef UTILS_H
  16. #include "Utils.h"
  17. #endif
  18.  
  19. // ----- OS Layer -----
  20.  
  21. #ifndef FLOATFRM_H
  22. #include "FloatFrm.h"
  23. #endif
  24.  
  25. //========================================================================================
  26. // Forward Declaration
  27. //========================================================================================
  28.  
  29. class FW_CFacetContext;
  30. class FW_CColor;
  31. class FW_CMouseEvent;
  32.  
  33. //========================================================================================
  34. // Constants
  35. //========================================================================================
  36.  
  37. const FW_Fixed kPatternCellSize = FW_IntToFixed(24);
  38.  
  39. //========================================================================================
  40. // Class CPatternFrame
  41. //========================================================================================
  42.  
  43. class CPatternFrame : public CFloatingWindowFrame
  44. {
  45. //----------------------------------------------------------------------------------------
  46. // Initialization/destruction
  47. //
  48. public:        
  49.  
  50.     FW_DECLARE_AUTO(CPatternFrame)
  51.     
  52.     CPatternFrame(Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, CDrawPart* drawPart);
  53.     virtual ~ CPatternFrame();
  54.  
  55. //----------------------------------------------------------------------------------------
  56. // Inherited API
  57. //
  58. public:    
  59.     virtual void             Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  60.     virtual FW_Boolean        DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  61.  
  62.     virtual void            FacetAdded(Environment* ev, ODFacet* facet, unsigned short facetCount);
  63.     
  64. //----------------------------------------------------------------------------------------
  65. // Data Members
  66. //
  67. private:
  68.     CGrid                    fGrid;
  69. };
  70.  
  71. #endif
  72.